﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main.Master" AutoEventWireup="true" CodeBehind="faleConosco.aspx.cs" Inherits="Presentation.Pages.faleConosco" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Entre em contato conosco
    </h1>
    <br />
    <br />
    <table>
        <tr>
            <td class="style1">
                <asp:Label ID="Label1" runat="server" Text="Nome :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNome" runat="server" Width="231px" BorderColor="#0099FF" 
                    BorderStyle="Solid" BorderWidth="1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNome" runat="server" Display="Dynamic" ControlToValidate="txtNome" 
                    ErrorMessage="Nome." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label2" runat="server" Text="Email :" ></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="231px" BorderColor="#0099FF" 
                    BorderStyle="Solid" BorderWidth="1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Display="Dynamic" ControlToValidate="txtEmail"
                    ErrorMessage="Email." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                    ErrorMessage="Email." ControlToValidate="txtEmail" Display="Dynamic" 
                    ValidationGroup="Enviar" Text="*" ToolTip="Email incorreto." 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style1" valign="top">
                Pedido :</td>
            <td>
                <asp:TextBox ID="txtMensagem" runat="server" TextMode="MultiLine" Width="446px" Height="113px"
                    style="margin-right: 0px" BorderColor="#0099FF" 
                    BorderStyle="Solid" BorderWidth="1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMensagem" runat="server" Display="Dynamic" ControlToValidate="txtMensagem"
                    ErrorMessage="Mensagem." ToolTip="Campo Obrigatório." ValidationGroup="Enviar">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnEnviar" runat="server" Text="Enviar" 
                    ValidationGroup="Enviar" onclick="btnEnviar_Click" />
                <asp:ValidationSummary ID="vSum" runat="server" HeaderText="Favor verificar os seguintes campos :" ShowMessageBox="True" ShowSummary="False" ValidationGroup="Enviar" />
            </td>
        </tr>
    </table>
</asp:Content>
